		function qiehuan(num){
			for(var id = 0;id<8;id++)
			{
				if(id==num)
				{
					document.getElementById("qh_con"+id).style.display="block";
					document.getElementById("mynav"+id).className="nav_on";
				}
				else
				{
					document.getElementById("qh_con"+id).style.display="none";
					document.getElementById("mynav"+id).className="";
				}
			}
		}
		
		function chgverpic()
		{
			var pp= Math.round((Math.random()) * 100000000);
			document.getElementById('verifypic').src = "${cpath}/verify/makeCertPic.jsp?pp="+pp;
		}
		function dotoplogin()
		{
				var re = /^[_a-zA-Z0-9\-\.]+@([\-_a-zA-Z0-9]+\.)+[a-zA-Z0-9]{2,3}$/;
				var form = document.topLogin;
				var loginfield		= form['loginfield'];
				var password	= form['password'];

				var email	= form['email'];
				var nick	= form['nick'];

				if(loginfield.value == "")
				{
					alert("请输入Email");
					loginfield.select();
					return false;
				}
				email.value = loginfield.value.replace(/(^\s*)|(\s*$)/g,"");

				if (email.value == "" || (!email.value.match(re)))
				{
					alert("【邮箱】不能为空或格式不符合规范\n");
					objForm.email.focus();
					return false;
				}

				if (password.value == "")
				{
					alert("密码不可为空");
					password.select();
					return false;
				}
				document.topLogin.submit();
		}


			/**
   * 检查项目资料维护
   */
	function doapply()
	{
		var form = document.applyform;

		var nick = form['nick'];
		var email = form['email'];
		var amtlimit = form['amtlimit'];
		var re = /^[_a-zA-Z0-9\-\.]+@([\-_a-zA-Z0-9]+\.)+[a-zA-Z0-9]{2,3}$/;

		if(nick.value == null||nick.value.replace(/(^\s*)|(\s*$)/g,"").length < 1)
   		{
			alert('请输入贵姓！');
			nick.select();
			return ;
		}

		if(amtlimit.value == null||amtlimit.value.replace(/(^\s*)|(\s*$)/g,"").length < 1)
   		{
			alert('请选择贷款金额！');
			amtlimit.select();
			return ;
		}
		
		if(email.value == null||email.value.replace(/(^\s*)|(\s*$)/g,"").length < 1)
   		{
			alert('请输入电子邮箱！');
			email.select();
			return ;
		}
		
		if (!email.value.match(re)){

			alert('邮箱格式不正确');
			email.select();
			return ;
		}
		form.submit();

	}